Skip to content

bmctest: run with PR branch if defined - #83103

Open
tdomnesc wants to merge 1 commit into
openshift:mainfrom
tdomnesc:bmctest-pr
Open

bmctest: run with PR branch if defined#83103
tdomnesc wants to merge 1 commit into
openshift:mainfrom
tdomnesc:bmctest-pr

Conversation

@tdomnesc

@tdomnesc tdomnesc commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Updates the OpenShift CI BMC test setup.
  • When PULL_NUMBER is set, the setup fetches the pull request head from origin and checks out pr-branch.
  • BMC tests can now run against the pull request branch instead of the default branch.

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@tdomnesc, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 8 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 0ae27c8e-7d9f-4e97-b6d4-8939d7d4cd37

📥 Commits

Reviewing files that changed from the base of the PR and between 66538a7 and 11718a7.

📒 Files selected for processing (1)
  • ci-operator/step-registry/bmctest/openshift/bmctest-openshift-commands.sh

Walkthrough

The remote BMC test setup now uses PULL_NUMBER to fetch and check out the corresponding pull-request head before running ocpbmctest.sh.

Changes

BMC test pull-request checkout

Layer / File(s) Summary
Conditional pull-request checkout
ci-operator/step-registry/bmctest/openshift/bmctest-openshift-commands.sh
When PULL_NUMBER is set, the script fetches the pull-request head into pr-branch and checks out that branch before executing ocpbmctest.sh.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Ipv6 And Disconnected Network Test Compatibility ⚠️ Warning The changed remote test fetches its PR branch from GitHub via git fetch origin; this requires public internet access and is incompatible with disconnected CI. Use an internal mirror or preloaded source, or add [Skipped:Disconnected]; verify IPv6 compatibility with /payload-job periodic-ci-openshift-release-master-nightly-4.22-e2e-metal-ipi-ovn-ipv6.
✅ Passed checks (14 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the change to run bmctest with the pull-request branch when PULL_NUMBER is defined.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The PR changes only a shell script to fetch and check out pr-branch; it adds no Ginkgo test titles or dynamic test-name values.
Test Structure And Quality ✅ Passed PASS: The PR changes only a shell command script and adds no Ginkgo It blocks, fixtures, waits, or assertions; the listed test-quality requirements are not applicable.
Microshift Test Compatibility ✅ Passed The commit changes only a bmctest shell script and adds no Ginkgo tests or MicroShift-incompatible test references.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The PR changes only a shell command script, adding conditional git fetch/checkout logic; it adds no Ginkgo e2e tests or multi-node assumptions.
Topology-Aware Scheduling Compatibility ✅ Passed The PR changes only a shell script to fetch and check out a bmctest PR branch; it adds no deployment, operator, controller, manifest, or scheduling constraints.
Ote Binary Stdout Contract ✅ Passed The PR changes only a remote Bash orchestration script; it adds no OTE binary, suite setup, or process-level stdout write covered by this contract.
No-Weak-Crypto ✅ Passed The four added lines only conditionally fetch and check out a GitHub pull-request ref; no weak algorithm, custom crypto, or secret/token comparison is present.
Container-Privileges ✅ Passed The PR adds only git fetch and checkout commands; it adds no privileged, host namespace, SYS_ADMIN, or allowPrivilegeEscalation settings in a container or Kubernetes manifest.
No-Sensitive-Data-In-Logs ✅ Passed The added commands expose only the PR number and fixed Git ref names under existing tracing; they do not log passwords, tokens, API keys, PII, session IDs, or customer data.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@openshift-ci
openshift-ci Bot requested review from derekhiggins and stbenjam August 7, 2026 13:47
@openshift-ci

openshift-ci Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tdomnesc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 7, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@ci-operator/step-registry/bmctest/openshift/bmctest-openshift-commands.sh`:
- Around line 20-23: Update the SSHCMD assignment to safely expand PULL_NUMBER
with an unset-safe default, matching the existing conditional’s ${PULL_NUMBER:-}
usage. Preserve the current PR fetch and checkout behavior while allowing non-PR
jobs to run with nounset enabled.
- Around line 20-23: Update the PULL_NUMBER branch-execution path around the git
fetch and checkout to avoid running untrusted PR-controlled code with
credentials: use a trusted job path or least-privilege credentials before
invoking ./ocpbmctest.sh and uploading pull-secret. Preserve the existing PR
checkout behavior only where the execution environment is appropriately
restricted.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 3a52529f-ed1c-43cf-a312-f00c8186bc62

📥 Commits

Reviewing files that changed from the base of the PR and between a9366fb and 5f69a20.

📒 Files selected for processing (1)
  • ci-operator/step-registry/bmctest/openshift/bmctest-openshift-commands.sh

Comment thread ci-operator/step-registry/bmctest/openshift/bmctest-openshift-commands.sh Outdated
@tdomnesc

tdomnesc commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-22

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@tdomnesc: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@tdomnesc

tdomnesc commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-metal3-bmctest-main-test-openshift-4-22

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@tdomnesc: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@tdomnesc: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-openshift-metal3-bmctest-main-test-openshift-4-22 openshift-metal3/bmctest presubmit Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-18 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-14 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-17 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-13 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-19 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-22 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-15 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-20 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-21 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-16 N/A periodic Registry content changed
Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@tdomnesc: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-openshift-metal3-bmctest-main-test-openshift-4-22 openshift-metal3/bmctest presubmit Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-15 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-14 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-18 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-19 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-22 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-13 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-17 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-16 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-20 N/A periodic Registry content changed
periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-21 N/A periodic Registry content changed
Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@tdomnesc

tdomnesc commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse periodic-ci-openshift-metal3-bmctest-main-servercheck-test-openshift-4-22

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@tdomnesc: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@tdomnesc

tdomnesc commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse ack

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@tdomnesc: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot openshift-merge-bot Bot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. rehearsals-ack Signifies that rehearsal jobs have been acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant